<%@ page import="ar.org.sstuyv.Solicitud" %>

<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'numero', 'error')} ">
	<label for="numero">
		<g:message code="solicitud.numero.label" default="Numero" />
		
	</label>
	<g:textField name="numero" value="${solicitudInstance?.numero}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'partido', 'error')} required">
	<label for="partido">
		<g:message code="solicitud.partido.label" default="Partido" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="partido" name="partido.id" from="${ar.org.sstuyv.Partido.list()}" optionKey="id" required="" value="${solicitudInstance?.partido?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'barrio', 'error')} required">
	<label for="barrio">
		<g:message code="solicitud.barrio.label" default="Barrio" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="barrio" name="barrio.id" from="${ar.org.sstuyv.Barrio.list()}" optionKey="id" required="" value="${solicitudInstance?.barrio?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'fecha', 'error')} required">
	<label for="fecha">
		<g:message code="solicitud.fecha.label" default="Fecha" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="fecha" value="${solicitudInstance?.numero}" > </g:textField>
</div>

<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'cantidadParcelas', 'error')} ">
	<label for="cantidadParcelas">
		<g:message code="solicitud.cantidadParcelas.label" default="Cantidad Parcelas" />
		
	</label>
	<g:textField name="cantidadParcelas" value="${solicitudInstance?.cantidadParcelas}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'encuadreLegal', 'error')} required">
	<label for="encuadreLegal">
		<g:message code="solicitud.encuadreLegal.label" default="Encuadre Legal" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="encuadreLegal" name="encuadreLegal.id" from="${ar.org.sstuyv.EncuadreLegal.list()}" optionKey="id" required="" value="${solicitudInstance?.encuadreLegal?.id}" class="many-to-one"/>
</div>

<%--<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'expediente', 'error')} required">--%>
<%--	<label for="expediente">--%>
<%--		<g:message code="solicitud.expediente.label" default="Expediente" />--%>
<%--		<span class="required-indicator">*</span>--%>
<%--	</label>--%>
<%--	<g:select id="expediente" name="expediente.id" from="${ar.org.sstuyv.Expediente.list()}" optionKey="id" required="" value="${solicitudInstance?.expediente?.id}" class="many-to-one"/>--%>
<%--</div>--%>

<%--<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'plano', 'error')} required">--%>
<%--	<label for="plano">--%>
<%--		<g:message code="solicitud.plano.label" default="Plano" />--%>
<%--		<span class="required-indicator">*</span>--%>
<%--	</label>--%>
<%--	<g:select id="plano" name="plano.id" from="${ar.org.sstuyv.planos.Plano.list()}" optionKey="id" required="" value="${solicitudInstance?.plano?.id}" class="many-to-one"/>--%>
<%--</div>--%>

<div class="fieldcontain ${hasErrors(bean: solicitudInstance, field: 'profesionalACargo', 'error')} required">
	<label for="profesionalACargo">
		<g:message code="solicitud.profesionalACargo.label" default="Profesional A Cargo" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="profesionalACargo" name="profesionalACargo.id" from="${ar.org.sstuyv.Personal.list()}" optionKey="id" required="" value="${solicitudInstance?.profesionalACargo?.id}" class="many-to-one"/>
</div>

